﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using com.codeplex.eatoutadvocate.Web.Mvc.Models;

namespace com.codeplex.eatoutadvocate.Web.Mvc.Engine
{
    public class RankDescending : IComparer<EatOut>
    {
        int IComparer<EatOut>.Compare(EatOut eatOut1, EatOut eatOut2)
        {
            if (eatOut1.Score > eatOut2.Score)
                return -1;
            else if (eatOut1.Score < eatOut2.Score)
                return 1;
            else
                return 0;
        }
    }
}